import request from '@/utils/Request'
import { stringify } from 'qs';

export async function queryChat(params) {
  return request(`/joker/chat/queryChat?${stringify(params)}`, {
    method: 'GET'
  });
}

export async function addChat(params) {
    return request('/joker/chat/add', {
    method: 'POST',
    data: {
      ...params
    }
  });
}
